/*
 * Author: Panagiotis Papadopoulos
 * Contact: panosjee@gmail.com
 * Date: August 8, 2009
 * Comment: GTUG Campout Meeting
 */

package com.google.wavesurferrobot.data;

import javax.jdo.PersistenceManager;

import com.google.wavesurferrobot.data.objects.Token;
import com.google.wavesurferrobot.data.util.PMF;

public class StoreTokenData {
	
	public static void storeTokenData(Token t) {
		storeDataGeneric(t);
	}
	
	public static void storeDataGeneric(Object obj) {
		
		PersistenceManager pm = PMF.get().getPersistenceManager();
        try {
            pm.makePersistent(obj);
        } finally {
            pm.close();
        }
	}	
}
